package com.haixiaoke.saas.house.mapper;

import com.haixiaoke.saas.house.domain.Decoration;

import java.util.List;

/**
 * 装修情况Mapper接口
 *
 * @author xiaolong
 * @date 2023-10-25
 */
public interface DecorationMapper {
    /**
     * 查询装修情况
     *
     * @param decorationId 装修情况主键
     * @return 装修情况
     */
    Decoration selectDecorationByDecorationId(Long decorationId);

    /**
     * 查询装修情况列表
     *
     * @param decoration 装修情况
     * @return 装修情况集合
     */
    List<Decoration> selectDecorationList(Decoration decoration);

    /**
     * 新增装修情况
     *
     * @param decoration 装修情况
     * @return 结果
     */
    int insertDecoration(Decoration decoration);

    /**
     * 修改装修情况
     *
     * @param decoration 装修情况
     * @return 结果
     */
    int updateDecoration(Decoration decoration);

    /**
     * 删除装修情况
     *
     * @param decorationId 装修情况主键
     * @return 结果
     */
    int deleteDecorationByDecorationId(Long decorationId);

    /**
     * 批量删除装修情况
     *
     * @param decorationIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteDecorationByDecorationIds(Long[] decorationIds);
}
